package com.youkeyi.ddy.cloud.basic.crm.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 疫苗客户订单信息
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-04-19
 */
@TableName("sys_vaccine_customer_order")
public class SysVaccineCustomerOrder extends Model<SysVaccineCustomerOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("primary_key")
    private String primaryKey;

    /**
     * 解决并发更新问题,每次更新需要用 uuid 做比较判断数据是否已变更
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 旧的uuid,mybatis 更新时需要
     */
    @TableField("old_uuid")
    private String oldUuid;

    /**
     * 主体key
     */
    @TableField("corp_key")
    private String corpKey;

    /**
     * 财务结算主体key
     */
    @TableField("finance_corp_key")
    private String financeCorpKey;

    /**
     * 客户key
     */
    @TableField("customer_key")
    private String customerKey;

    /**
     * 客户姓名
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 顾问微信
     */
    @TableField("consultant_wechat")
    private String consultantWechat;

    /**
     * 疫苗商品key
     */
    @TableField("goods_key")
    private String goodsKey;

    /**
     * 疫苗商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品分类key
     */
    @TableField("goods_category_key")
    private String goodsCategoryKey;

    /**
     * 商品分类名称
     */
    @TableField("goods_category_name")
    private String goodsCategoryName;

    /**
     * 服务人员key
     */
    @TableField("service_user_key")
    private String serviceUserKey;

    /**
     * 服务人员
     */
    @TableField("service_user_name")
    private String serviceUserName;

    /**
     * 接种者key
     */
    @TableField("recipient_key")
    private String recipientKey;

    /**
     * 接种者姓名
     */
    @TableField("recipient_name")
    private String recipientName;

    /**
     * 性别：male 男 female 女
     */
    @TableField("recipient_sex")
    private String recipientSex;

    /**
     * 生日
     */
    @TableField("recipient_birthday")
    private Date recipientBirthday;

    /**
     * 身份证
     */
    @TableField("recipient_id_card")
    private String recipientIdCard;

    /**
     * 疫苗总针数(疫苗项目才有)
     */
    @TableField("vaccine_doses")
    private Integer vaccineDoses;

    /**
     * 政府资助费用
     */
    @TableField("government_funding_fees")
    private BigDecimal governmentFundingFees;

    /**
     * 成本价
     */
    @TableField("cost_price")
    private BigDecimal costPrice;

    /**
     * 项目实收(收入)rmb
     */
    @TableField("income_rmb")
    private BigDecimal incomeRmb;

    /**
     * 项目实收(收入)港币
     */
    @TableField("income_hkb")
    private BigDecimal incomeHkb;

    /**
     * 手續費金額(如：12GO手續費金額）
     */
    @TableField("handling_fee_amount")
    private BigDecimal handlingFeeAmount;

    /**
     * 付款方式key
     */
    @TableField("pay_type_key")
    private String payTypeKey;

    /**
     * 付款方式
     */
    @TableField("pay_type_name")
    private String payTypeName;

    /**
     * 预付款日期
     */
    @TableField("pre_payment_date")
    private Date prePaymentDate;

    /**
     * 化验所key
     */
    @TableField("laboratory_key")
    private String laboratoryKey;

    /**
     * 化验所名称
     */
    @TableField("laboratory_name")
    private String laboratoryName;

    /**
     * 医生key
     */
    @TableField("doctor_key")
    private String doctorKey;

    /**
     * 医生名称
     */
    @TableField("doctor_name")
    private String doctorName;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 来源部门key
     */
    @TableField("source_department_key")
    private String sourceDepartmentKey;

    /**
     * 来源部门名称
     */
    @TableField("source_department_name")
    private String sourceDepartmentName;

    /**
     * 来源人Key
     */
    @TableField("source_user_key")
    private String sourceUserKey;

    /**
     * 来源人
     */
    @TableField("source_user_name")
    private String sourceUserName;

    /**
     * 來源渠道
     */
    @TableField("source_channel")
    private String sourceChannel;

    /**
     * 登记日期
     */
    @TableField("registration_time")
    private Date registrationTime;

    /**
     * 成交日期
     */
    @TableField("completion_time")
    private Date completionTime;

    /**
     * 状态：0 未分配 1 跟进中 2 已完成 3 已签约未收款 4 已收款服务中 5 已取消
     */
    @TableField("status")
    private Integer status;

    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField("create_user_key")
    private String createUserKey;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_user_key")
    private String updateUserKey;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getOldUuid() {
        return oldUuid;
    }

    public void setOldUuid(String oldUuid) {
        this.oldUuid = oldUuid;
    }
    public String getCorpKey() {
        return corpKey;
    }

    public void setCorpKey(String corpKey) {
        this.corpKey = corpKey;
    }
    public String getFinanceCorpKey() {
        return financeCorpKey;
    }

    public void setFinanceCorpKey(String financeCorpKey) {
        this.financeCorpKey = financeCorpKey;
    }
    public String getCustomerKey() {
        return customerKey;
    }

    public void setCustomerKey(String customerKey) {
        this.customerKey = customerKey;
    }
    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
    public String getConsultantWechat() {
        return consultantWechat;
    }

    public void setConsultantWechat(String consultantWechat) {
        this.consultantWechat = consultantWechat;
    }
    public String getGoodsKey() {
        return goodsKey;
    }

    public void setGoodsKey(String goodsKey) {
        this.goodsKey = goodsKey;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public String getGoodsCategoryKey() {
        return goodsCategoryKey;
    }

    public void setGoodsCategoryKey(String goodsCategoryKey) {
        this.goodsCategoryKey = goodsCategoryKey;
    }
    public String getGoodsCategoryName() {
        return goodsCategoryName;
    }

    public void setGoodsCategoryName(String goodsCategoryName) {
        this.goodsCategoryName = goodsCategoryName;
    }
    public String getServiceUserKey() {
        return serviceUserKey;
    }

    public void setServiceUserKey(String serviceUserKey) {
        this.serviceUserKey = serviceUserKey;
    }
    public String getServiceUserName() {
        return serviceUserName;
    }

    public void setServiceUserName(String serviceUserName) {
        this.serviceUserName = serviceUserName;
    }
    public String getRecipientKey() {
        return recipientKey;
    }

    public void setRecipientKey(String recipientKey) {
        this.recipientKey = recipientKey;
    }
    public String getRecipientName() {
        return recipientName;
    }

    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }
    public String getRecipientSex() {
        return recipientSex;
    }

    public void setRecipientSex(String recipientSex) {
        this.recipientSex = recipientSex;
    }
    public Date getRecipientBirthday() {
        return recipientBirthday;
    }

    public void setRecipientBirthday(Date recipientBirthday) {
        this.recipientBirthday = recipientBirthday;
    }
    public String getRecipientIdCard() {
        return recipientIdCard;
    }

    public void setRecipientIdCard(String recipientIdCard) {
        this.recipientIdCard = recipientIdCard;
    }
    public Integer getVaccineDoses() {
        return vaccineDoses;
    }

    public void setVaccineDoses(Integer vaccineDoses) {
        this.vaccineDoses = vaccineDoses;
    }
    public BigDecimal getGovernmentFundingFees() {
        return governmentFundingFees;
    }

    public void setGovernmentFundingFees(BigDecimal governmentFundingFees) {
        this.governmentFundingFees = governmentFundingFees;
    }
    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }
    public BigDecimal getIncomeRmb() {
        return incomeRmb;
    }

    public void setIncomeRmb(BigDecimal incomeRmb) {
        this.incomeRmb = incomeRmb;
    }
    public BigDecimal getIncomeHkb() {
        return incomeHkb;
    }

    public void setIncomeHkb(BigDecimal incomeHkb) {
        this.incomeHkb = incomeHkb;
    }
    public BigDecimal getHandlingFeeAmount() {
        return handlingFeeAmount;
    }

    public void setHandlingFeeAmount(BigDecimal handlingFeeAmount) {
        this.handlingFeeAmount = handlingFeeAmount;
    }
    public String getPayTypeKey() {
        return payTypeKey;
    }

    public void setPayTypeKey(String payTypeKey) {
        this.payTypeKey = payTypeKey;
    }
    public String getPayTypeName() {
        return payTypeName;
    }

    public void setPayTypeName(String payTypeName) {
        this.payTypeName = payTypeName;
    }
    public Date getPrePaymentDate() {
        return prePaymentDate;
    }

    public void setPrePaymentDate(Date prePaymentDate) {
        this.prePaymentDate = prePaymentDate;
    }
    public String getLaboratoryKey() {
        return laboratoryKey;
    }

    public void setLaboratoryKey(String laboratoryKey) {
        this.laboratoryKey = laboratoryKey;
    }
    public String getLaboratoryName() {
        return laboratoryName;
    }

    public void setLaboratoryName(String laboratoryName) {
        this.laboratoryName = laboratoryName;
    }
    public String getDoctorKey() {
        return doctorKey;
    }

    public void setDoctorKey(String doctorKey) {
        this.doctorKey = doctorKey;
    }
    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getSourceDepartmentKey() {
        return sourceDepartmentKey;
    }

    public void setSourceDepartmentKey(String sourceDepartmentKey) {
        this.sourceDepartmentKey = sourceDepartmentKey;
    }
    public String getSourceDepartmentName() {
        return sourceDepartmentName;
    }

    public void setSourceDepartmentName(String sourceDepartmentName) {
        this.sourceDepartmentName = sourceDepartmentName;
    }
    public String getSourceUserKey() {
        return sourceUserKey;
    }

    public void setSourceUserKey(String sourceUserKey) {
        this.sourceUserKey = sourceUserKey;
    }
    public String getSourceUserName() {
        return sourceUserName;
    }

    public void setSourceUserName(String sourceUserName) {
        this.sourceUserName = sourceUserName;
    }
    public String getSourceChannel() {
        return sourceChannel;
    }

    public void setSourceChannel(String sourceChannel) {
        this.sourceChannel = sourceChannel;
    }
    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }
    public Date getCompletionTime() {
        return completionTime;
    }

    public void setCompletionTime(Date completionTime) {
        this.completionTime = completionTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getCreateUserKey() {
        return createUserKey;
    }

    public void setCreateUserKey(String createUserKey) {
        this.createUserKey = createUserKey;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUserKey() {
        return updateUserKey;
    }

    public void setUpdateUserKey(String updateUserKey) {
        this.updateUserKey = updateUserKey;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysVaccineCustomerOrder{" +
            "id=" + id +
            ", primaryKey=" + primaryKey +
            ", uuid=" + uuid +
            ", oldUuid=" + oldUuid +
            ", corpKey=" + corpKey +
            ", financeCorpKey=" + financeCorpKey +
            ", customerKey=" + customerKey +
            ", customerName=" + customerName +
            ", consultantWechat=" + consultantWechat +
            ", goodsKey=" + goodsKey +
            ", goodsName=" + goodsName +
            ", goodsCategoryKey=" + goodsCategoryKey +
            ", goodsCategoryName=" + goodsCategoryName +
            ", serviceUserKey=" + serviceUserKey +
            ", serviceUserName=" + serviceUserName +
            ", recipientKey=" + recipientKey +
            ", recipientName=" + recipientName +
            ", recipientSex=" + recipientSex +
            ", recipientBirthday=" + recipientBirthday +
            ", recipientIdCard=" + recipientIdCard +
            ", vaccineDoses=" + vaccineDoses +
            ", governmentFundingFees=" + governmentFundingFees +
            ", costPrice=" + costPrice +
            ", incomeRmb=" + incomeRmb +
            ", incomeHkb=" + incomeHkb +
            ", handlingFeeAmount=" + handlingFeeAmount +
            ", payTypeKey=" + payTypeKey +
            ", payTypeName=" + payTypeName +
            ", prePaymentDate=" + prePaymentDate +
            ", laboratoryKey=" + laboratoryKey +
            ", laboratoryName=" + laboratoryName +
            ", doctorKey=" + doctorKey +
            ", doctorName=" + doctorName +
            ", remark=" + remark +
            ", sourceDepartmentKey=" + sourceDepartmentKey +
            ", sourceDepartmentName=" + sourceDepartmentName +
            ", sourceUserKey=" + sourceUserKey +
            ", sourceUserName=" + sourceUserName +
            ", sourceChannel=" + sourceChannel +
            ", registrationTime=" + registrationTime +
            ", completionTime=" + completionTime +
            ", status=" + status +
            ", isDeleted=" + isDeleted +
            ", createUserKey=" + createUserKey +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
            ", updateUserKey=" + updateUserKey +
            ", updateUserName=" + updateUserName +
            ", updateTime=" + updateTime +
        "}";
    }
}
